<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>用户信息</title>
    <script src="js/axios.js"></script>
    <script src="js/jquery.js"></script>
</head>
<body>
    <from >
        <input id="1" type="text" name="name" placeholder="请输入您的姓名" value=""  ><br>
        <input id="2" type="text" name="age" placeholder="请输入您的年龄" value="" ><br>
        <input id="3" type="text" name="address" placeholder="请输入您的地址" value=""><br>
        <button type="button"  onclick="p()">点击提交</button>
    </from>
<script>





    $(document).ready(function(){
        $("button").click(function(){
            var paramsObj = { name: $("#1").val(), age: $("#2").val() ,address: $("#3").val()}
            axios({
                method:"GET",
                url:"/user/q10.do",
                contentType: "application/json;charset=utf-8",
                params:
                paramsObj

            }).then(function (res){
                console.log(res);
            })
        });
    });

</script>
</body>
</html>